//启动数据格式预览服务
// ./dmanywhere.team.mac.0.8.4 -p 9988

//仓库选择
{
  selectData: function({ form, data, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      form.warehouseName = d.warehouse;
      form.warehouseCode = d.warehouseCode;
      form.fctCode = d.fctCode
    }
  }
}

//子库选择
{
  selectData: function({ form, data, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      form.zwarehouseName = d.zwarehouse;
    }
  }
}

//库区选择
{
  selectData: function({ form, data, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      form.zwarehouseCode = d.zwarehouseCode;
      form.warehouseName = d.warehouseName;
      form.factoryCode = d.factoryCode;
      form.warehouseCode = d.warehouseCode;
    }
  }
}

//厅店选择
{
  selectData: function({ form, data, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      form.storeCode = d.storeCode;
      form.store = d.store;
      form.customerCd = d.customerCd;
      form.customer = d.customer;
    }
  }
}


mitemCode
material
materialCode
fctCode


{ "searchLabelWidth": 120 }
{ dicData: [{ label: '否', value: 0 }, { label: '是', value: 1 }] }


{
  dicUrl: "/system/dict/dictionary?code=store_type",
    props: {
    label: "dictValue",
      value: "dictKey"
  }
}

{
  dicUrl: "/system/dict/dictionary?code=appliances_type",
    props: {
    label: "dictValue",
      value: "dictKey"
  }
}

//工厂选择

{
  searchValue: 0
}

{
  "dicUrl": "/wms/plantmanagement/getPlantList",
    "props": {
    "label": "fctCode",
      "value": "fctCode"
  },
  "cascader": [
    "warehouseCode"
  ],
}
{
  "dicUrl": "/wms/warehouse/getWarehouseGroupList?fctCode={{fctCode}}",
    "props": {
    "label": "warehouse",
      "value": "warehouse"
  },
  "cascader": [
    "zwarehouseCode"
  ],
}


[{ value: 1, label: '围板箱' }]

{ searchLabelWidth: 150 }

// 子库选择器
{
  selectData: function({ form, data, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      form.zwarehouseName = d.zwarehouse;
      form.factoryCode = d.fctCode;
      form.warehouseCode = d.warehouseCode;
      form.warehouseName = d.warehouse;
    }

  }
}

//库区选择
{
  selectData: function({ form, data, view }) {
    if (data) {
      const d = JSON.parse(JSON.stringify(data));
      form.zoneId = d.id;
      form.zoneName = d.zoneName;
      form.zoneCode = d.zoneCode;
      form.attribute = d.attribute;
      form.zwarehouseCode = d.zwarehouseCode;
      form.zwarehouseName = d.zwarehouseName;
      form.warehouseCode = d.warehouseCode;
      form.warehouseName = d.warehouseName;
      form.factoryCode = d.factoryCode;
      form.factoryName = d.factoryName;
    }
  }
}


{
  "label": "仓库名称",
    "dicUrl": "/wms/warehouse/getWarehouseGroupList?fctCode={{key}}",
      "type": "select",
        "props": {
    "label": "warehouse",
      "value": "warehouse"
  },
  "cascader": [
    "warehouseCode"
  ],
}

{
  "filterable": true,
    "showColumn": true,
      "multiple": false,
        "index": 99,
          "label": "仓库编号",
            "dicUrl": "/wms/warehouse/getWarehouseCodeList",
              "type": "select",
                "props": {
    "label": "warehouseCode",
      "value": "warehouseCode"
  },
  "search": true,
    "dicQuery": {
    "fctCode": "{{fctCode}}",
      "warehouse": "{{warehouse}}"
  },
  "prop": "warehouseCode",
    "width": 120,
      "labelKey": "wms.warehouse.warehouse.list_warehouseCode",
        "searchOrder": 2
},


{
  "filterable": true,
    "showColumn": true,
      "multiple": false,
        "index": 99,
          "label": "仓库名称",
            "dicUrl": "/wms/warehouse/getWarehouseGroupList?fctCode={{key}}",
              "type": "select",
                "props": {
    "label": "warehouse",
      "value": "warehouse"
  },
  "cascader": [
    "warehouseCode"
  ],
    "search": true,
      "prop": "warehouse",
        "width": 120,
          "labelKey": "wms.warehouse.warehouse.list_warehouse",
            "searchOrder": 3
},
{
  "filterable": true,
    "showColumn": true,
      "multiple": false,
        "index": 99,
          "label": "仓库编号",
            "dicUrl": "/wms/warehouse/getWarehouseCodeList",
              "type": "select",
                "props": {
    "label": "warehouseCode",
      "value": "warehouseCode"
  },
  "search": true,
    "dicQuery": {
    "fctCode": "{{fctCode}}",
      "warehouse": "{{warehouse}}"
  },
  "prop": "warehouseCode",
    "width": 120,
      "labelKey": "wms.warehouse.warehouse.list_warehouseCode",
        "searchOrder": 2
},
{
  "filterable": true,
    "showColumn": true,
      "multiple": false,
        "index": 99,
          "label": "工厂代码",
            "dicUrl": "/wms/plantmanagement/getPlantList",
              "type": "select",
                "props": {
    "label": "fctCode",
      "value": "fctCode"
  },
  "cascader": [
    "warehouse"
  ],
    "search": true,
      "prop": "fctCode",
        "width": 120,
          "labelKey": "wms.warehouse.warehouse.list_fctCode",
            "searchOrder": 4
},